<?php
require_once(dirname(__FILE__).'/../bootstrap/Doctrine.php');

$t = new lime_test(5, new lime_output_color());

$t->comment('::hasPngExtension()');
$t->isa_ok(Check::hasPngExtension(), 'boolean', '::hasPngExtension() returns a boolean');
$t->is(Check::hasPngExtension('foo.png'), true, '::hasPngExtension() returns true when the string ends with ".png"');
$t->is(Check::hasPngExtension('foo.jpg'), false, '::hasPngExtension() returns fals when the string doesn\'t end with ".png"');
$t->is(Check::hasPngExtension('foo.PNG'), true, '::hasPngExtension() is not case sensible');
$t->is(Check::hasPngExtension('.PNG'), false, '::hasPngExtension() the string length has to be > 4');